import requests

resp=requests.get(url="http://www.baidu.com")
print("获取百度sURL",resp.url)
print("获取响应状态码：",resp.status_code)
print("获取cookies：",resp.cookies)
print("获取响应头：：",resp.headers)
print("获取响应体：：",resp.text)
# print("获取响应体：：",resp.json())